package com.jeeplus.test.jlnu.fieldConfig.service.impl;

import com.jeeplus.test.jlnu.fieldConfig.domain.FieldConfigEntity;
import com.jeeplus.test.jlnu.fieldConfig.mapper.AdmissionFieldConfigMapper;
import com.jeeplus.test.jlnu.fieldConfig.service.AdmissionFieldConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AdmissionFieldConfigServiceImpl implements AdmissionFieldConfigService {
    @Autowired
    private AdmissionFieldConfigMapper admissionFieldConfigMapper;

    // 获取所有的字段配置
    public List<FieldConfigEntity> getAllFieldConfigs() {
        return admissionFieldConfigMapper.getAllFieldConfigs();
    }

    // 更新某个字段的自定义名称
    public void updateFieldConfig(String fieldKey, String fieldName) {
        admissionFieldConfigMapper.updateFieldConfig(fieldKey, fieldName);
    }
}
